
import flash.display.DisplayObject;

import mx.containers.Panel;
import mx.containers.TabNavigator;
import mx.controls.Alert;

import spark.components.NavigatorContent;

public function addTab(x:Number, y:Number, w:Number): void{
	
	var tab : TabNavigator = new TabNavigator();
	 var n : NavigatorContent = new NavigatorContent();
	
	tab.x = x;
	tab.y=y;
	tab.id ="TabelaPrinc";
	tab.width=w;
	tab.height=500;
	n.width=tab.width;
	n.height=tab.height;
	n.label="Clientes";
	tab.addElement(n);
	this.addElement(tab);
	
}



public function cpanel (): void {
	
	var p : Panel = new Panel();
	p.x=368;
	p.y=100;
	p.width=200;
	p.height=200;
	p.id="panel1";
	this.addElement(p);
}

public function msg(): void{
	Alert.show("teste de Script","Atenção");
}